using System;
using System.Collections.Generic;
using System.Text;

namespace PDSClient.Utils
{
    /// <summary>
    /// port of the java's java.net.PasswordAuthentication class.
    /// </summary>
    public sealed class PasswordAuthentication
    {
        private string userName;
        private char[] password;

        public PasswordAuthentication(string userName, char[] password)
        {
            this.userName = userName;
            this.password = (char[])password.Clone();
        }

        public string UserName { get { return userName; } }
        public char[] Password { get { return password; } }
    }
}
